package main

import (
	"fmt"
	"reflect"
)

type Season int

const (
	Spring Season = iota + 1
	Summer
	Autumn
	Winter
)

func printSeason() {
	type1 := reflect.TypeOf(Spring)
	type2 := reflect.TypeOf(Summer)
	type3 := reflect.TypeOf(Autumn)
	type4 := reflect.TypeOf(Winter)
	fmt.Println(type1)
	fmt.Println(type2)
	fmt.Println(type3)
	fmt.Println(type4)
}

func translate(season Season) (string, bool) {
	switch season {
	case Spring:
		return "春天", true
	case Summer:
		return "夏天", true
	case Autumn:
		return "秋天", true
	case Winter:
		return "动天", true
	}
	return "", false
}

func main() {
	s, ok := translate(9)
	if !ok {
		fmt.Println("there is no such value ")
		return
	}
	fmt.Println(s)

}
